<template>
  <div class="box">
    <h2 class="title">子组件</h2>
    <Child2></Child2>
  </div>
</template>

<script>
import Child2 from './Child2.vue'
export default {
  name: 'Child',
  components: {
    Child2
  }
}
</script>

<style scoped>
  .title {
    font-size: 20px;
  }
</style>